<template>
  <div>
    <!--    <bpmnModeler/>-->
    <!--    <bpmnViewer/>-->
    <diagram-manager :model-info.sync="modelInfo" @saveXml="saveXml"/>
  </div>
</template>

<script>
// import bpmnModeler from '@/src/DiagramManager/diagram/bpmn-modeler.vue'
// import bpmnViewer from '@/src/DiagramManager/diagram/bpmn-viewer.vue'
// import diagramManager from '@/components/DiagramManager/diagramManager.vue'
// import diagramManager from './components/DiagramManager'
import {xmlStr2} from "@/mock/xmlStr2";

export default {
  name: 'App',
  components: {
    // bpmnModeler,
    // bpmnViewer,
    // diagramManager
  },
  data() {
    return {
      modelInfo: {
        id: '39cc0a8a-7734-11eb-a23e-00155d2daa95',
        key: '流程主键modelKey',
        name: '!!!!!!!', //流程名称
        metaInfo: '',
        modelXml: xmlStr2
      }
    }
  },
  methods: {
    saveXml(postData){
      console.log(postData);
    },
  }
}
</script>

<style>
</style>
